﻿@model S4Store.Domain.Actionplan
@{
    ViewBag.Title = "Detail";
    Layout = null;
    S4Store.Domain.Administrator CurrentUser = (S4Store.Domain.Administrator)ViewBag.CurrentUser;
}
<form class="pageForm addpage" action="@Url.Action("ModifyBack")" method="post">
<div style="height: 100%; width: 100%; overflow: hidden" class="verticalSplitContainer">
    <div class="pageFormContent" style="overflow: auto;" ratio="*">
        <table style="width: 100%">
            @*                <tr>
                    <td width="20%">计划标题：</td>
                    <td width="80%">@Model.Title</td>
                </tr>*@
            @if (CurrentUser.Position == S4Store.Domain.Position.SystemManager || CurrentUser.Position == S4Store.Domain.Position.StoreManager || CurrentUser.Position == S4Store.Domain.Position.GeneralManager)
            {
                <tr>
                    <td width="20%">
                        执行人：
                    </td>
                    <td width="80%">@Model.AppUser.Name
                    </td>
                </tr>
            }
            <tr>
                <td width="20%">
                    起止时间：
                </td>
                <td width="80%">@Model.Start.ToString("yyyy-MM-dd") 至 @Model.End.ToString("yyyy-MM-dd")
                </td>
            </tr>
@*            <tr>
                <td width="20%">
                    状态：
                </td>
                <td width="80%">@Model.Status.GetDescription()
                </td>
            </tr>*@
            <tr>
                <td width="20%">
                    弱项描述：
                </td>
                <td width="80%"  class="htmlContent">@Html.Raw(Model.Reason.Replace("\r","<br/>"))
                </td>
            </tr>
            <tr>
                <td width="20%">
                    改善步骤：
                </td>
                <td width="80%" class="htmlContent"><br/>@Html.Raw(Model.Content.Replace("\r", "<br/>"))
                </td>
            </tr>
@*            @if (Model.Status == S4Store.Domain.Actionplan.PlanStatus.Excuted || Model.Status == S4Store.Domain.Actionplan.PlanStatus.Finish)
            {
                
                <tr>
                    <td width="20%">
                        计划执行结果：
                    </td>
                    <td width="80%">@Html.Raw(Model.Achievement)
                    </td>
                </tr>
            }*@
        </table>
    </div>
</div>
</form>
